﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TBM.Core.Helper
{
    /// <summary>
    /// 站点菜单
    /// </summary>
    public class SiteMenu
    {
        private List<Models.MainMenu> pages;

        public List<Models.MainMenu> Pages
        {
            get
            {
                return pages;
            }
        }

        public SiteMenu()
        {
            pages = new List<Models.MainMenu>
            {
                new Models.MainMenu { PageName = "平台首页", URL = "/", Icon = "fa fa-dashboard", IsShow = true, Descr = "统计中心", Sort = 0 },
                new Models.MainMenu { PageName = "网店管理", URL = "#", Icon = "fa fa-desktop", IsShow = true, Sort = 0 },
                new Models.MainMenu { PageName = "库存管理", URL = "#", Icon = "fa fa-cubes", IsShow = true, Sort = 0 },
                new Models.MainMenu { PageName = "销售管理", URL = "#", Icon = "fa fa-calculator", IsShow = true, Sort = 0 },
                new Models.MainMenu { 
                    PageName = "财务管理", URL = "/finance/", Icon = "fa fa-credit-card", IsShow = true, Sort = 0, 
                    SubMenu = new List<Models.MainMenu>{
                        new Models.MainMenu { PageName = "收支流水", URL = "/finance/", Icon = "fa fa-credit-card", IsShow = true, Sort = 0 }
                    }
                },
                new Models.MainMenu { PageName = "供应商管理", URL = "#", Icon = "fa fa-globe", IsShow = true, Sort = 0 },
                new Models.MainMenu { PageName = "日程安排", URL = "/calendar/", Icon = "fa fa-calendar", IsShow = true, Sort = 0 },
                new Models.MainMenu { PageName = "邮件管理", URL = "/mail/", Icon = "fa fa-envelope-o", IsShow = true, Sort = 0, SubTitle = "站内邮件系统" },
                new Models.MainMenu { 
                    PageName = "用户管理", URL = "/user/", Icon = "fa fa-user", IsShow = true, Sort = 0, 
                    SubMenu = new List<Models.MainMenu>{
                        new Models.MainMenu { PageName = "个人资料", URL = "/user/userprofile/", Icon = "fa fa-user", IsShow = true, Sort = 0 },
                        new Models.MainMenu { PageName = "用户组管理", URL = "/user/grouplist/", Icon = "fa fa-users", IsShow = true, Sort = 0 },
                        new Models.MainMenu { PageName = "用户列表", URL = "/user/", Icon = "fa fa-users", IsShow = true, Sort = 0 }
                    }
                },
                new Models.MainMenu { PageName = "系统配置", URL = "/system/", Icon = "fa fa-gears", IsShow = true, Sort = 0 }
            };

        }
    }
}
